package com.ow.dva.module.park.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ow.dva.module.base.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 车位表
 * </p>
 *
 * @author YanZengBao
 * @since 2020-02-19
 * @version V1.0
 */
@TableName("dva_parkinglot")
@ApiModel(value="Parkinglot对象", description="车位表")
public class Parkinglot implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "停车场ID")
    private String parkId;

    @ApiModelProperty(value = "停车场名称")
    private String parkName;

    @ApiModelProperty(value = "区域ID")
    private String areaId;

    @ApiModelProperty(value = "区域名称")
    private String areaName;

    @ApiModelProperty(value = "车位编号")
    private String parkinglotCode;

    @ApiModelProperty(value = "车位状态：1:使用中；0:未使用")
    private Integer parkinglotStatus;

    @ApiModelProperty(value = "车位类型（1，地锁车位  2,地磁车位 3.普通车位）")
    private Integer parkinglotType;

    @ApiModelProperty(value = "是否已绑定分区（0-未绑定 1-已绑定）")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String intro;

    @ApiModelProperty(value = "地锁的唯一标识(控制地锁)")
    private String lockNumber;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getParkId() {
        return parkId;
    }

    public void setParkId(String parkId) {
        this.parkId = parkId;
    }
    public String getParkName() {
        return parkName;
    }

    public void setParkName(String parkName) {
        this.parkName = parkName;
    }
    public String getParkinglotCode() {
        return parkinglotCode;
    }

    public void setParkinglotCode(String parkinglotCode) {
        this.parkinglotCode = parkinglotCode;
    }
    public Integer getParkinglotStatus() {
        return parkinglotStatus;
    }

    public void setParkinglotStatus(Integer parkinglotStatus) {
        this.parkinglotStatus = parkinglotStatus;
    }
    public Integer getParkinglotType() {
        return parkinglotType;
    }

    public void setParkinglotType(Integer parkinglotType) {
        this.parkinglotType = parkinglotType;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }
    public String getLockNumber() {
        return lockNumber;
    }

    public void setLockNumber(String lockNumber) {
        this.lockNumber = lockNumber;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    @Override
    public String toString() {
        return "Parkinglot{" +
            "id=" + id +
            ", parkId=" + parkId +
            ", parkName=" + parkName +
            ", parkinglotCode=" + parkinglotCode +
            ", parkinglotStatus=" + parkinglotStatus +
            ", parkinglotType=" + parkinglotType +
            ", status=" + status +
            ", intro=" + intro +
            ", lockNumber=" + lockNumber +
            ", createTime=" + createTime +
        "}";
    }


    public Parkinglot() {
    }

    public Parkinglot(String id, String parkId, String parkName, String parkinglotCode, Integer parkinglotStatus, Integer parkinglotType, Integer status, String intro, String lockNumber, Date createTime,String areaId,String areaName) {
        this.id = id;
        this.parkId = parkId;
        this.parkName = parkName;
        this.parkinglotCode = parkinglotCode;
        this.parkinglotStatus = parkinglotStatus;
        this.parkinglotType = parkinglotType;
        this.status = status;
        this.intro = intro;
        this.lockNumber = lockNumber;
        this.createTime = createTime;
        this.areaId = areaId;
        this.areaName = areaName;
    }
}
